package org.gruposp2p.aula.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class AulaAppEngine implements EntryPoint {
	
	/**
	* The current style theme.
	*/
	public static String CUR_THEME = AulaConstants.STYLE_THEMES[0];	

	/**
 	* The {@link Application}.
 	*/
	private AulaApplication app = new AulaApplication();  

	/**
 	* This is the entry point method.
 	*/
	public void onModuleLoad() {   
		DOM.setInnerHTML(RootPanel.get("Loading-Message").getElement(), "");
		RootPanel.getBodyElement().getStyle().setProperty("display", "none");
		RootPanel.getBodyElement().getStyle().setProperty("display", "");	   
		RootPanel.get("site").add(app);
		//StyleSheetLoader.loadStyleSheet("Aula.css");
		StyleSheetLoader.loadStyleSheet(GWT.getModuleBaseURL() + "Aula.css");
	}

}
